module.exports = function main(args) {
console.log('uri args');
console.dir(args);
const desc = [
'',
'Description: The URI example features a complete and well-tested URI (RFC 3986) parser.',
'With this test any URI can be parsed into its components:',
' scheme',
' userinfo',
' host',
' port',
' path',
' query',
' fragment',
].join('\n');
const example = 'http://user@example.com:123/abs/path?q1=a1#body';
const help = [
'',
'Usage: npm run uri [-- arg]',
' arg: <none> (no arg) displays example description and help screen.',
' --help display help screen.',
' -h display help screen.',
' URI the URI string to parse, e.g. http://user@example.com:123/path?query#fragment',
' all to verify that all is well, parses the specific URI:',
` ${example}`,
].join('\n');
if (!args[0]) {